//
//  VMCModuleBar.h
//  vmcshop
//
//  Created by bigknife on 14-10-9.
//  Copyright (c) 2014年 idongler. All rights reserved.
//
//自定义的TabBar module 单元，单位

#import <UIKit/UIKit.h>

@class VMCModuleBar;

@protocol VMCModuleBarDelegate <NSObject>
@optional

/**
 *  确定选择某个模块
 *
 *  @param bar     bar
 *  @param itemTag sTag
 */
-(void) moduleBar:(VMCModuleBar *)bar didSelectItemWithTag:(NSString *)itemTag;

/**
 *  即将选择某个模块
 *
 *  @param bar     bar
 *  @param itemTag sTag
 *
 *  @return 如果返回NO，则不选定该item
 */
-(BOOL) moduleBar:(VMCModuleBar *)bar willSelectItemWithTag:(NSString *)itemTag;

@end

@interface VMCModuleBar : UIView
@property (nonatomic,weak) IBOutlet UIView *backgourndView;
@property (nonatomic,weak) id<VMCModuleBarDelegate> delegate;
@property (nonatomic, weak) NSString *selectedSTag;
@end
